use std::fmt::Display;

pub type StatusCode = http::StatusCode;
pub type Method = http::Method;

#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Protocol {
    Http,
    Ws,
    Sse,
}

impl Display for Protocol {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Protocol::Http => write!(f, "HTTP"),
            Protocol::Ws => write!(f, "WS"),
            Protocol::Sse => write!(f, "SSE"),
        }
    }
}
